<nav class="navbar navbar-inverse navbar-fixed-top">
    <div class="container">
        <div class="navbar-header">
            <button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#bs-example-navbar-collapse-1" aria-expanded="false">
                <span class="sr-only">Toggle navigation</span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
                <span class="icon-bar"></span>
            </button>
            <a class="navbar-brand" href="#">班级说说</a>
            <ul class="nav navbar-nav navbar-right">
                <li class="active"><a href="#">全部说说</a></li>
                <li><a href="up">我的说说</a></li>
            </ul>
        </div>
        <div class="collapse navbar-collapse" id="bs-example-navbar-collapse-1">
            <ul class="nav navbar-nav navbar-right">
                <%if(name){%>
                    <li class="active"><a href="#"><%=name%></a></li>
                    <li><a href="/goAvatar">个人信息</a></li>
                <%}else{%>
                    <li <%if(active == 'register'){%>class="active"<%}%> ><a href="/register">注册</a></li>
                    <li <%if(active == 'login'){%>class="active"<%}%> ><a href="/login">登录</a></li>
                <li><a href="/goAvatar">个人信息</a></li>
                <%}%>
            </ul>
        </div><!-- /.navbar-collapse -->

    </div>
</nav>


